﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BBPA.Admin.SYS.Goods_SaleWay_Discount
{
    public partial class List : ListPage
    {
        BLL.Goods_SaleWay_Discount bllList = new BLL.Goods_SaleWay_Discount();
        BLL.Goods_SaleWay_Discount bll = new BLL.Goods_SaleWay_Discount();
        //
        protected bool isAdmin = false;
        protected void Page_Load(object sender, EventArgs e)
        {
            Master.show_info = false;
            isAdmin = Security.GetCurrentUserType() == EnumHelper.UserType.Administrator;
            if (!isAdmin)
            {
                th_Sell.Visible = false;
                Master.ArrayControlID_noVisible_cph_td.Add("td_Sell");
            }
            Master.BasicSQL = "GoodsID=" + Request.QueryString["GoodsID"];
            Master.QueryString = Master.BasicSQL;
        }
        public override void buildSQL_Page_List_search()
        {
        }
        public override DataSet get_Page_DataSet(string sql_, string orderby_, int pageFrom_, int pageTo_) { return bllList.GetListByPage(sql_, orderby_, pageFrom_, pageTo_); }
        public override void del_Page_List(string inStr_)
        {
            foreach (string id in inStr_.Split(','))
            {
                int thisID = DataTypePlus.requestInt(id);
                bll.Delete(thisID);
                //BLL.User_Operate_Log.Add(Security.GetCurrentUserID(), EnumHelper.TableName.Express, thisID, EnumHelper.OperateType.Delete, "");
            }
        }

    }
}